echo The script will auto-download and auto-install Firefox 4.0, please choose the language
echo Please choose the 4th option if you already have the file
select yn in "English" "Spanish" "Portuguese" "Just install" "Exit"; do
	case $yn in
        	English ) wget http://mozilla.ftp.halifax.rwth-aachen.de/mozilla/firefox/releases/4.0/linux-i686/en-US/firefox-4.0.tar.bz2; mv firefox-4.0.tar.bz2 /usr/local/bin; cd /usr/local/bin; tar jxvf firefox-4.0.tar.bz2; killall firefox; killall firefox-bin; kmenuedit; echo; echo Once you are in the kmenuedit, go to Internet Menu, and choose Web Browser; echo ; echo On Command option add: /usr/local/bin/firefox/firefox; echo; echo Thanks for using the script; exit;;

        	Spanish ) wget http://hammurabi.acc.umu.se/pub/mozilla.org//firefox/releases/4.0/linux-i686/es-ES/firefox-4.0.tar.bz2; mv firefox-4.0.tar.bz2 /usr/local/bin; cd /usr/local/bin; tar jxvf firefox-4.0.tar.bz2; killall firefox; killall firefox-bin; kmenuedit; echo; echo Once you are in the kmenuedit, go to Internet Menu, and choose Web Browser; echo ; echo On Command option add: /usr/local/bin/firefox/firefox; echo; echo Thanks for using the script; exit;;
		Portuguese ) wget http://3347-mozilla.voxcdn.com/pub/mozilla.org/firefox/releases/4.0/linux-i686/pt-BR/firefox-4.0.tar.bz2; mv firefox-4.0.tar.bz2 /usr/local/bin; cd /usr/local/bin; tar jxvf firefox-4.0.tar.bz2; killall firefox; killall firefox-bin; kmenuedit; echo; echo Once you are in the kmenuedit, go to Internet Menu, and choose Web Browser; echo ; echo On Command option add: /usr/local/bin/firefox/firefox; echo; echo Thanks for using the script; exit;;
		"Just install" ) mv firefox-4.0.tar.bz2 /usr/local/bin; cd /usr/local/bin; tar jxvf firefox-4.0.tar.bz2; killall firefox; killall firefox-bin; kmenuedit; echo; echo Once you are in the kmenuedit, go to Internet Menu, and choose Web Browser; echo ; echo On Command option add: /usr/local/bin/firefox/firefox; echo; echo Thanks for using the script; exit;;
		Exit ) echo Exiting; exit;;
    esac
done

